package cn.yunhe.service;

import cn.yunhe.dao.IHuiFuDao;
import cn.yunhe.dao.impl.HuiFuDao;
import cn.yunhe.entity.HuiFu;

import java.util.List;

public class HuiFuService {
    IHuiFuDao huiFuDao = new HuiFuDao();

    /**
     * 回复
     *
     * @param context
     * @param lid
     * @param uid
     * @return
     */
    public boolean addHuiFu(String context, int lid, int uid) {
        return huiFuDao.addHuiFu(context, lid, uid);
    }

    /**
     * 得到所有回复
     *
     *
     * @return
     */
    public List<HuiFu> getAAllHuiFu(int lid) {
        return huiFuDao.getAAllHuiFu(lid);
    }

    /**
     * 得到所有回复
     *
     * @return
     */
    public List<HuiFu> getAllHuiFu(){
        return huiFuDao.getAllHuiFu();
    }
}
